package com.wr.service.user;

import com.wr.model.RestResponse;
import com.wr.model.User;
import org.apache.ibatis.annotations.Param;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

public interface UserService {

    RestResponse<User> register(User user);

    RestResponse<User> getUserByEmail( String email);

    RestResponse<User> getUserByUserName( String username);

    RestResponse<User> getUserById( Integer id);

    RestResponse<User> authLogin( User user);

    RestResponse<User> getUserByToken(String token);

    RestResponse<User> logout( String token);

    RestResponse<User> resetPw(User user);

    RestResponse<User> update(User user);

}
